package com.atguigu.eduservice.mapper;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.atguigu.eduservice.entity.vo.CourseWebVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author Panghl
 * @since 2021-01-06
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    /**
     * 根据课程id获取最终课程信息 用于显示发布
     * @param id
     * @return
     */
    CoursePublishVo getPublishCourseInfo(String id);

    /**
     * 根据课程id获取课程信息
     * @param courseId
     * @return
     */
    CourseWebVo selectBaseCourseInfo(String courseId);
}
